﻿<?php
$jkb_version='1.0';
 // 配置参数
$host='127.0.0.1';
$port='6379';  

$redis = new Redis();
$redis->connect($host,$port);
$status = $redis->info();
$redis->close();

if (empty($status) || !is_array($status)) {
	echo 'cannot connect to redis';
	exit;
}

$status['jkb_version'] = $jkb_version;
$status=json_encode($status);
$status =preg_replace('/# [a-zA-Z\r\n]*/', '', $status);
$status =str_replace('\r\n', '', $status );
echo $status ;
